﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Presentacion
{
    public partial class Plantilla : System.Web.UI.MasterPage
    {
        

        protected void Page_Load(object sender, EventArgs e)
        {
                if (Session["idDocente"] != null || Session["admin"] != null || Session["vicerrectorado"] != null)
                {
                    if (Request.Cookies["datosgalleta"].Value != null)
                    {
                        DateTime inicioSession = Convert.ToDateTime(Request.Cookies["datosgalleta"].Value.ToString());
                        DateTime horaActual = DateTime.Now;
                        TimeSpan resta = horaActual.Subtract(inicioSession);
                        hidenTime.Value = resta.ToString();
                    }
                }
        }
    }
}